package com.ljj.wechat;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Scanner;

public class WeChatApplication {
    public static void main(String[] args) throws ParseException {
        System.out.println("Start Success !");
        Execute execute = new Execute();
        String friendName=null;
        String time=null;
        String message=null;
        System.out.println("请输入您的好友备注");
        Scanner str1 = new Scanner(System.in);
        if (str1.hasNext()) {
             friendName = str1.next();
        }
        System.out.println("请输入发送的时间(举例22:16:30)");
        Scanner str2 = new Scanner(System.in);
        if (str2.hasNext()) {
            time = str2.next();
        }
        System.out.println("请输入发送的信息内容");
        Scanner str3 = new Scanner(System.in);
        if (str3.hasNext()) {
            message = str3.next();
        }
        execute.everyday(friendName, time, message);
//        execute.everyday("光", "22:16:30", "晚安");
    }
}